package com.baseframe.create1.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.baseframe.create1.R;
import com.baseframe.create1.activity.KaijiangHistory;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;


/**
 * Created by Administrator on 2015/12/11.
 */
public class TouziFragment extends Fragment {

    @BindView(R.id.img_shuangse)
    ImageView imgShuangse;
    @BindView(R.id.text_shuangse)
    TextView textShuangse;
    @BindView(R.id.text_shuangse2)
    TextView textShuangse2;
    @BindView(R.id.layout_shuangse)
    RelativeLayout layoutShuangse;
    @BindView(R.id.daletou)
    ImageView daletou;
    @BindView(R.id.layout_daletou)
    RelativeLayout layoutDaletou;
    @BindView(R.id.img_3d)
    ImageView img3d;
    @BindView(R.id.layout_3d)
    RelativeLayout layout3d;
    @BindView(R.id.imgdas)
    ImageView imgdas;
    @BindView(R.id.layoutpailiesan)
    RelativeLayout layoutpailiesan;
    @BindView(R.id.img_pailie5)
    ImageView imgPailie5;
    @BindView(R.id.layout_pailie5)
    RelativeLayout layoutPailie5;
    @BindView(R.id.img_zuqiu)
    ImageView imgZuqiu;
    @BindView(R.id.layout_ball)
    RelativeLayout layoutBall;
    Unbinder unbinder;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_secone, null);

        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick({R.id.img_shuangse, R.id.text_shuangse, R.id.text_shuangse2, R.id.layout_shuangse, R.id.daletou, R.id.layout_daletou, R.id.img_3d, R.id.layout_3d, R.id.imgdas, R.id.layoutpailiesan, R.id.img_pailie5, R.id.layout_pailie5, R.id.img_zuqiu, R.id.layout_ball})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_shuangse:

            case R.id.text_shuangse:

            case R.id.text_shuangse2:

            case R.id.layout_shuangse:


            case R.id.daletou:

            case R.id.layout_daletou:

            case R.id.img_3d:

            case R.id.layout_3d:

            case R.id.imgdas:

            case R.id.layoutpailiesan:

            case R.id.img_pailie5:

            case R.id.layout_pailie5:

            case R.id.img_zuqiu:

            case R.id.layout_ball:
                startActivity(new Intent(getActivity(),KaijiangHistory.class));
                break;
        }
    }
}
